/*
 * @Description: 页面接口给高阶组件样式
 * @Author: Rfan
 * @Date: 2022-12-13 15:38:38
 * @LastEditTime: 2022-12-13 20:26:06
 */

$pageNav: 200px;

.page-layout {
  position: relative;
  display: flex;
  width: calc(100% + 2 * #{$layoutSpace});
  height: calc(100% + 2 * #{$layoutSpace});
  padding: $layoutSpace;
  margin: -$layoutSpace;
  overflow: auto;

  .page-layout-container {
    position: relative;
    flex: 1;
    width: auto;
    min-height: 100%;
    margin-left: $pageNav;

    &.hide-sidebar {
      margin-left: auto;
    }
  }
}

.page-layout-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: $pageNav;
  height: 100%;
  overflow-x: hidden;
  background: #ffffff;
  border-right: 1px solid #f0f0f0;
}

.page-layout-title {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 20px;
  font-weight: bold;
}
